﻿<%@ Page Title="About" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="About.aspx.cs" Inherits="WebApplication2.About" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2><%: Title %>.</h2>
    <h3>Your application description page.</h3>
    <p>Use this area to provide additional information.</p>
    <select id="select" onchange="changed()">
        <option value="volvo" selected>Volvo</option>
        <option value="saab">Saab</option>
        <option value="opel">Opel</option>
        <option value="audi">Audi</option>
    </select>
    <input type="hidden" id="test" />
    <script src="~/Scripts/jquery-1.10.2.js"></script>
    <script>
        $('#test').val($('#select').val());
        console.log($('#select').val());
        console.log($('#test').val());
        function changed() {
            $('#test').val($('#select').val());
            console.log($('#test').val());
        }
    </script>
</asp:Content>

